package day24;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class Demo2 {
    public static void main(String[] args) throws IOException {
        InputStream is = System.in;
        InputStreamReader isr = new InputStreamReader(is);
        BufferedReader br = new BufferedReader(isr);
        System.out.println("请输入你的姓名");
        String name = br.readLine();
        System.out.println("请输入你的性别");
        String sex = br.readLine();
        System.out.println(name+" "+sex);
    }
}
